﻿using System;
using System.Collections.Generic;
using System.Text;
using BlueLotus7.Common;
using System.Runtime.Serialization;

namespace BlueLotus7.Contract
{
    public class Int64ConfigurationValue : ConfigurationValue
    {
        public Int64ConfigurationValue(string valueString)
            : base(valueString) { }

        protected override void InitializeValueObject()
        {
            this.valueObject = Convert.ToInt64(valueString);
        }

        public override void SetValue(string valueString)
        {
            base.SetValue(valueString);
            this.valueObject = Convert.ToInt64(valueString);
        }

        public long? GetObjectValue()
        {
            return this.valueObject as int?;
        }
    }
}
